<!--<div class="navbar navbar-fixed-top main-nav" role="navigation">
  <div class="container">
    <p-growl [(value)]="msgs"></p-growl>
    <div class="navbar-header">
      <a routerLink="posts" class="navbar-brand navbar-brand-my navbar-left">
        NiceFish
      </a>
    </div>
    <div class="collapse navbar-collapse navbar-responsive-collapse" aria-expanded="false">
      <ul class="nav navbar-nav">
        <li routerLinkActive="active" class="dropdown">
          <a routerLink="posts">文章</a>
        </li>
        <li routerLinkActive="active" class="dropdown">
          <a routerLink="button">button</a>
        </li>
      </ul>
      <ul *ngIf="!currentUser?.userName" class="nav navbar-nav navbar-right">
        <li routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
          <a routerLink="login">登录</a>
        </li>
        <li routerLinkActive="active">
          <a routerLink="register">注册</a>
        </li>
      </ul>
      <ul *ngIf="currentUser?.userName" class="nav navbar-nav navbar-right">
        <li routerLinkActive="active">
          <a routerLink="user">欢迎：{{currentUser?.userName}}</a>
        </li>
        <li routerLinkActive="active">
          <a routerLink="manage">管理</a>
        </li>
        <li>
          <a href="javascript:void(0);" (click)="doLogout()">退出</a>
        </li>
      </ul>
    </div>
  </div>
</div>-->

<nav class="navbar navbar-inverse main-nav navbar-fixed-top" role="navigation">
  <div class="container">
    <p-growl [(value)]="msgs"></p-growl>
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
              aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" routerLink="home">NiceFish</a>
    </div>
    <div id="navbar" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        <li><a routerLink="home">Home</a></li>
        <li><a routerLink="home/about">About</a></li>
        <li><a routerLink="button">button</a></li>
        <li><a routerLink="editor">editor</a></li>
      </ul>
      <ul *ngIf="!currentUser?.userName" class="nav navbar-nav navbar-right">
        <li routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
          <a routerLink="user/login">登录</a>
        </li>
        <li routerLinkActive="active">
          <a routerLink="user/register">注册</a>
        </li>
      </ul>
      <ul *ngIf="currentUser?.userName" class="nav navbar-nav navbar-right">
        <li routerLinkActive="active">
          <a routerLink="user">欢迎：{{currentUser?.userName}}</a>
        </li>
        <li routerLinkActive="active">
          <a routerLink="manage">管理</a>
        </li>
        <li>
          <a href="javascript:void(0);" (click)="doLogout()">退出</a>
        </li>
      </ul>
    </div><!--/.nav-collapse -->
  </div>
</nav>

<div class="container main-container">
  <router-outlet></router-outlet>
</div>

<div class="footer bs-footer">
  <div class="container">
    <div class="row">
      <p>
        Powered by <a href="http://git.oschina.net/mumu-osc/NiceFish" target="_blank">NiceFish</a>
      </p>
    </div>
  </div>
</div>




